<#assign ctx="${rc.contextPath}">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title></title>
		<style type="text/css">
			body {
				margin-left: 0px;
				margin-top: 0px;
				background-image: url('${ctx}/images/seach_4.gif');
			}
		</style>
		<link href="${ctx}/css/common.css" rel="stylesheet" type="text/css">
		<script type="text/javascript" src="${ctx}/js/jquery-1.4.4.min.js"></script>
		<style>
			a:link{color:#F08334;	text-decoration: none;}
		</style>
	</head>

	<body>
		<table width="90%" height=100% border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td height=25 id=location ><div align="left"><img src="${ctx}/images/location_arrow.gif" width="8" height="11" align="absmiddle"> 您的位置：流程审批&gt;&gt; 待审批信息&gt;&gt; 购房申请列表</div></td>
    </tr>
</table>

            <table width="450%" border="0" cellpadding="0" cellspacing="0" id="list"  bgcolor="#FFFFFF">
                <tr>  
				  <TH align="center" width="60"> 选择 </TH>   
				      <TH align="center" width="100"> 购房信息审批情况 </TH>            
                  <TH align="center" width="100"> 姓名 </TH>
				  <TH align="center" width="100"> 身份证号 </TH>
				   <TH align="center" width="100">产权管理单位</TH>
				   <TH align="center" width="100">房位置</TH>
				    <TH align="center" width="100">小区名称</TH>
				    <TH align="center" width="30">楼号</TH>
					<TH align="center" width="50">总层数</TH>
					 <TH align="center" width="30">单元</TH>
				   <TH align="center" width="30">房号</TH>
				   <TH align="center" width="50">建筑面积</TH>
				    <TH align="center" width="50">测绘面积</TH>
					<TH align="center" width="50">性质</TH>
				   <TH align="center" width="50">所在楼层</TH>
					 <TH align="center" width="50">朝向户型</TH>
					 <TH align="center" width="50">产权比例</TH> 
					  <TH align="center" width="50">是否成套</TH>
				   
				  <TH align="center" width="182">工作单位全称</TH>
				  <TH align="center" width="118"> 公积金账号 </TH>
				  <TH align="center" width="75"> 户籍号 </TH>
				  <TH align="center" width="150"> 现任行政职务 </TH> 
				  <TH align="center" width="75"> 行政级别 </TH>
				  <TH align="center" width="150"> 现聘专业职称 </TH>
				  <TH align="center" width="75">  职称级别</TH> 
                  <TH align="center" width="75"> 购房价格 </TH>
                  <TH align="center" width="75"> 应交房款 </TH>
				  <TH align="center" width="75"> 实交房款 </TH>
                  <TH align="center" width="150">物业基金</TH>
                  <TH align="center" width="150">地下室费</TH>
                  <TH align="center" width="150">测绘费</TH>
                  <TH align="center" width="150">退房押金</TH>
                  <TH align="center" width="150">未婚押金</TH>
                  <TH align="center" width="150"> 货币补贴 </TH>
				  <TH align="center" width="75"> 配偶姓名 </TH>
				  <TH align="center" width="150"> 配偶身份证号 </TH>
				   <TH align="center" width="150">配偶公积金账号 </TH>
				   <TH align="center" width="150">配偶现任行政职务 </TH> 
				  <TH align="center" width="150"> 配偶行政级别 </TH>
				  <TH align="center" width="150"> 配偶现聘专业职称 </TH>
				  <TH align="center" width="150"> 配偶职称级别</TH> 
                  </tr>
                <#if page.elements??>
                  <#list page.elements as buy>
                <tr id="${buy.buy_id!""}">
                <TD align="center">
					<input type="checkbox" class="buyId" value="${buy.buy_id};${buy.room_id}">
				 </TD>
                  <TD align="center">
                  	<#if buy.check_status??>
                  	<#if buy.check_status == "0">
                  			未审批
                  		<#elseif buy.check_status == "1">
                  			未通过
                  		<#elseif buy.check_status == "9">
                  			已入库
                  	</#if>
                  	</#if>
                  </TD>
                  <TD align="center">${buy.buy_name!""}</TD>
				  <TD align="center">${buy.id_card!""}</TD>
                  <TD align="center">${buy.group_id!""}</TD>
                  <TD align="center">${buy.build.house_estate!""}</TD>
				  <TD align="center">${buy.build.build_no!""}</TD>
				  <TD align="center">${buy.build.layer_count!""}</TD>
                  <TD align="center">${buy.room.room_unit!""}</TD>
                  <TD align="center">${buy.room.room_no!""}</TD>
                  <TD align="center">${buy.build.build_areas!""}</TD>
				  <TD align="center">${buy.build.test_areas!""}</TD>
				  <TD align="center">${buy.room.room_type!""}</TD>
                  <TD align="center">${buy.room.layer!""}</TD>
                  <TD align="center">${buy.room.face!""}</TD>
                  <TD align="center">${buy.room.layout!""}</TD>
                  <TD align="center">${buy.room.cqbl!""}</TD>
                  <TD align="center">
                  	<#if buy.room.sfct??>
                  		<#if buy.room.sfct == "1">
                  		是
                  		<#elseif buy.room.sfct == "0">
                  			否
                  		</#if>
                  	</#if>
                  </TD>
                  <TD align="center">${buy.comp_name!""}</TD>
                  <TD align="center">${buy.fund!""}</TD>
				  <TD align="center">${buy.house_hold!""}</TD>
                  <TD align="center">${buy.position!""}</TD>
                  <TD align="center">${buy.position_level!""}</TD>
                  <TD align="center">${buy.rank!""}</TD>
                  <TD align="center">${buy.rank_level!""}</TD>
                  <TD align="center">${buy.buy_price!""}</TD>
				  	  <TD align="center">${buy.yjfk!""}</TD>
				  <TD align="center">${buy.sjfk!""}</TD>
                  <TD align="center">${buy.wyjj!""}</TD>
                  <TD align="center">${buy.dxsfy!""}</TD>
                  <TD align="center">${buy.chf!""}</TD>
                  <TD align="center">${buy.tfyj!""}</TD>
                  <TD align="center">${buy.whyj!""}</TD>
                  <TD align="center">
                  	<#if buy.hbbt??>
                  	<#if buy.hbbt == "0">
                  			不享受
                  		<#elseif buy.hbbt == "1">
                  			全额享受
                  		<#elseif buy.hbbt == "2">
                  			部分享受
                  	</#if>
                  	</#if>
                  </TD>
                  <TD align="center">${buy.mate_name!""}</TD>
				  <TD align="center">${buy.mate_card!""}</TD>
                  <TD align="center">${buy.mate_fund!""}</TD>
                  <TD align="center">${buy.mate_position!""}</TD>
                  <TD align="center">${buy.mate_positionlevel!""}</TD>
                  <TD align="center">${buy.mate_rank!""}</TD>
                  <TD align="center">${buy.mate_ranklevel!""}</TD>
                  </tr>
                  </#list></#if>
              </table>





          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td id="page"><div align="right">
              <#if page.elements??>
              	<#if page.getTotalPage() != 0>
                    <@ui.pager page=page action="${ctx}/buy/goufangquery.htm?flag=shenpi">
                        <input type="hidden" name="check_status" value="${dto.check_status!""}">
                    </@ui.pager>
                  </#if>
                  </#if>
              </div></td>
            </tr>
          </table>
          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>　</td>
            </tr>
          </table>
          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="25" id="operation">                  <div align="right">
			  <input name="Submit2" type="button" class="input-button" value="不同意" onClick="shenpi(1)">
		  <img src="${ctx}/images/line.gif" width="5" height="15" align="absmiddle">
			  <input name="Submit2" type="button" class="input-button" value="同 意" onClick="shenpi(9)">              
              </div></td>
            </tr>
          </table>
	</body>
	
	<script>
		function shenpi(status) {
		
			var ids = '';
			$('.buyId:checked').each(function() {
				ids += $(this).val() + ',';
			});
			
			var url = "${ctx}/shenpi/buy.htm?ids=" + ids + "&status=" + status;
			$.ajax({
			  type: "POST",
			  url: url,
			   success: function(msg){
				   	if (msg == '0') {
				   		alert("审批失败，请联系管理员！");
				   	} else if (msg == '1') {
				   		alert("审批成功！");
				   		document.location.reload();
				   		$('.buyId:checked').attr("checked", false);
				   	}
			   }

			});
			
		}
	</script>
</html>